package com.gxc.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author GongXincheng
 * @since 2019-09-03 14:21
 */
@Configuration
public class SimpleQueueConfigBean {

    public static final String SIMPLE_QUEUE_NAME = "simple";

    @Bean
    public Queue myQueue() {
        return new Queue(SIMPLE_QUEUE_NAME);
    }

}
